package com.fjwt.gz.service.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.fjwt.gz.db.dto.AwardVirtualCdkDTO;
import com.fjwt.gz.db.entity.AwardVirtualCdkEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fjwt.gz.db.vo.AwardVirtualCdkVO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 虚拟奖品CDK表 Mapper 接口
 * </p>
 *
 * @author shiyonghao
 * @since 2025-04-09
 */
public interface AwardVirtualCdkMapper extends BaseMapper<AwardVirtualCdkEntity> {


    /**
     * 根据参数查询列表
     * @param iPage
     * @param awardCdkDTO
     * @return
     */
    IPage<AwardVirtualCdkVO> selectListByParams(IPage iPage, @Param("awardCdkDTO") AwardVirtualCdkDTO awardCdkDTO);

    /**
     * 查询已划拨的cdk列表
     * @param iPage
     * @param awardCdkDTO
     * @return
     */
    IPage<AwardVirtualCdkVO> queryUsedCdkList(IPage iPage, @Param("awardCdkDTO") AwardVirtualCdkDTO awardCdkDTO);
}
